Learning Obstacle Representations for Neural Motion Planning