A self-consistent calculation of the electronic structure of thin copper films