Detection and Risk Analysis with Lane-Changing Decision Algorithms for Autonomous Vehicles