Which device is commonly used as a controlled switch in power-electronic circuits?