Radio resource management in device-to-device and vehicle-to-vehicle communication in 5G networks and beyond