energy_consumed: Added program to compute energy consumed from the batteries during a plan.