Triac dimmable 12v switching power supply