Resonant enhancement of grazing incidence neutron scattering for the characterization of thin films