Determination of velocity distribution and flow resistance in vegetated channel flows