Fiber Bragg grating growth simulation using an inverse scattering matrix approach