Electronic structure of CuPd alloys