Which layer of the Earth is the least dense and is the thinnest?