Measurement of the muon-induced neutron yield in liquid scintillator and stainless steel at LNGS with the LVD experiment