A method for estimating hourly averages of diffuse and direct solar radiation under a layer of scattered clouds