Mechanics and physiology of animal swimming