An adaptive approach to cooperative longitudinal platooning of heterogeneous vehicles with communication losses