Theory of electron states at random alloy surfaces. Surface states on Cu-Ni (111)