Socially and Spatially Aware Motion Prediction of Dynamic Objects for Autonomous Driving