A Consensus-based Approach for Platooning with Inter-Vehicular Communications