Ab initio molecular orbital calculations of effective exchange integrals for transition metal oxides and halides: Strong superexchange interactions and high Tc superconductivity