An analytical approximation for the evaluation of fabrication error on the reflectivity of a Bragg grating