Development of an Adaptive Model Predictive Control for platooning safety in Battery Electric Vehicles