Study of the electronic structure of molecules. XXIII. Decomposition of correlation energy into atomic, covalent, ionic and van der Waals components