Hysteresis of laminar-turbulent transition in a pipe with a divergent inlet section