Pit formation and segregation effects during Cu thin-film growth on Ag(111)