Calculation of solar-energy inputs into melt ponds