GRIN: Generative Relation and Intention Network for Multi-agent Trajectory Prediction