Data-Driven Methodology for Model Order Reduction to Predict and Manage Building Energy Flexibility in Smart Grids