Thermodynamic analysis and algorithm optimisation of a multi-stage compression adiabatic compressed air energy storage system