Shape, density, and geology of the nucleus of Comet 103P/Hartley 2