Optimising revenue for standalone energy storage