Structurally Induced Magnetic Phase Transition in Manganese Phthalocyanine Thin Films