Modifications of the electronic structure of Ni/Cu(001) as a function of the film thickness