Model-based Integrated Planning and Control of Autonomous Vehicles using Artificial Potential Fields