Using sky-classification to improve the short-term prediction of irradiance with sky images and convolutional neural networks