Optical modulation of magnesium 2,5-dihydroxyterephthalate saturable absorber for passively Q-switched 2 μm solid-state laser