Theoretical studies of inorganic and organometallic reaction mechanisms. 2. The trans effect in square-planar platinum(II) and rhodium(I) substitution reactions