Generating Method Based on Conformal Invariance of the Maxwell Field