Electrostatic Screening and Friedel Oscillations in Nanostructures