Correlation and exchange contributions to the charge density variations of an electron gas in the metallic range