Propulsive efficiency of oscillating foils