Motion Planning for Autonomous Vehicles in Urban Scenarios: A Sequential Optimization Approach