Invisibility cloaks and the equivalence principle for electromagnetics