Adjustment of a turbulent boundary layer to a canopy of roughness elements