Energy-based Contact Planning under Uncertainty for Robot Air Hockey