Regular black holes with a nonlinear electrodynamics source