Solar and wind look like they have a cost advantage, but batteries show why the most flexible actors often capture the economic surplus instead.