Spice models for diacs, thyristors and triacs