Model-based Path Planning and Control for Autonomous Vehicles using Artificial Potential Fields