Quantum size effects in Friedel oscillations inside films