On solving the surface energy balance equation for surface temperature