Large-amplitude oscillations of foils for efficient propulsion