Real-Time Adaptive Nonlinear Mpc For Collision Imminent Control And Planning In Automated Vehicles