State the structure and operating principle of a transformer