Transforming Singular Black Holes Into Regular Black Holes Sourced by Nonlinear Electrodynamics