General Theory of Superexchange in Molecules