Twisting electromagnetic fields with singular transformation optics