Nonsingular black holes in nonlinear gravity coupled to Euler-Heisenberg electrodynamics