Quantum and Classical Learning Algorithms for Grid Integration of Energy Storage and Renewables: Operation, Modelling, and Planning