A Learning Framework For Cooperative Collision Avoidance of UAV Swarms Leveraging Domain Knowledge