What is the primary purpose associated with the use of transformers onboard ships with AC generators?