Improving irradiance prediction by using classification of sky images and deep learning