Real-time Adaptive Nonlinear MPC for Collision Imminent Control and Planning in Automated Vehicles