Thermally driven dual-frequency Q-switching of Nd:YGd2Sc2Al2GaO12 ceramic laser.