Transformers for swimming pool lighting