Magnetocrystalline anisotropy of interfaces: first-principles theory for Co-Cu interface and interpretation by an effective ligand interaction model