Calculation of the top loss coefficient of a flat-plate collector