A Fault Diagnosis Algorithm for Three-Way Catalytic Converters