Digital Simulation of Thyristor Circuits Via Tableau Approach