How does a transformer work ? | working principle of a transformer | types & applications