Forces on oscillating foils for propulsion and maneuvering