Gravitational corrections to the Euler-Heisenberg Lagrangian