Comparison of a thermopile broadband detector and a photon detector for the measurement of solar radiation