Calculation of free-surface profile over a rectangular broad-crested weir