Text this: Design of a flattening filter using Fiber Bragg Gratings for EDFA gain equalization: an artificial neural network application