Phase transition of traffic states with on-ramp