Coupling of single, double, and triple-decker metal-phthalocyanine complexes to ferromagnetic and antiferromagnetic substrates