Hydromechanics of swimming of fishes and cetaceans