Text this: An Improved Theoretical Approach to Study Electromagnetic Waves through Fiber Bragg Gratings