The relationship between diffuse and total solar radiation in computer simulation of solar energy systems