Physical Layer Security and Optimal Relay Assignment of Cooperative Autonomous Vehicles in Realistic Network Environments