Gyms are harnessing the power of people’s workouts to reduce energy consumption and demonstrate their environmental credibility.