Thermal lens determination of end-pumped solid-state lasers using primary degeneration modes