The laser-based gain monitoring system of the calorimeters in the Muon g-2 experiment at Fermilab