Velocity profiles in ducts with rectangular cross sections