Deducing the stage-discharge relationship for contracted weirs by the outflow theory of Malcherek