A MATRIX PARTITIONING APPROACH TO THE CALCULATION OF INTERMOLECULAR POTENTIALS - GENERAL-THEORY AND SOME EXAMPLES