Measuring thermal and mechanical stresses on optical fiber in a DC module using fiber Bragg gratings