A Platoon Formation Framework in a Mixed Traffic Environment