Transition from out-of-plane to in-plane contribution for the optical second harmonic generation response from a silver metallic nanoparticle film