Relative Position Matters: Trajectory Prediction and Planning with Polar Representation