Error energy bounds for adaptive gradient algorithms