Full Matlab Code for Synthesis and Optimization of Bragg Gratings. (2019)