Stability properties of black holes in self-gravitating nonlinear electrodynamics