Optimizing microgrid energy management: a novel framework for user-centric demand-side management and dynamic reserve allocation under uncertainty