Thermal lens measurement technique in end-pumped solid state lasers: Application to diode-pumped microchip lasers