A two-step Q-switching technique for producing high power in a single longitudinal mode