Resource allocation for vehicular communications