Numerical Simulation Methods Applied at Fiber Grating Sensors Design