Effects of surface waves on hydrodynamic pressures on rigid dams with arbitrary upstream face