Quantitative Risk Assessment And Mitigation Through Fault Diagnostics For Automated Vehicles