Engineering Next-Generation Energy Systems: Renewable Integration, Grid Flexibility, and the Role of Advanced Storage Technologies