Geometry from quantum mechanics : entanglement, energy conditions and the emergence of space