Structure-dependent exchange in the organic magnets Cu(II)Pc and Mn(II)Pc