Electron scattering at surfaces and grain boundaries in Cu thin films and wires