Two Ways to Use Grid-Tied Batteries: Energy Arbitrage and Grid Services