Thermal lens determination of end‐pumped solid‐state lasers with transverse beat frequencies