Propagation of surface gravity waves over a rectangular submerged bar