A Unified Approach to Driver Assistance Systems Based on Artificial Potential Fields