Chemistry and electronic properties of a metal-organic semiconductor interface : In on CuPc