Nonlinear electrodynamics of the interaction of ultra-intense laser pulses with a thin foil