Density of planets in the Solar System