Ensemble learning-based approach for residential building heating energy prediction and optimization