Real-time integration of optimal generation scheduling with MPC for the energy management of a renewable hydrogen-based microgrid