A Consensus-Based Approach for Platooning with Intervehicular Communications and Its Validation in Realistic Scenarios