Using Real-time and Historical Battery Analytics to Advance Energy Storage System Economics