Electromagnetic perturbations of black holes in general relativity coupled to nonlinear electrodynamics