A Method to Calculate the Capacity of Unsignalized Intersection for Connected and Automated Vehicles Based on Gap Acceptance Theory