GAMMA: A General Agent Motion Model for Autonomous Driving