it takes energy to swim