The gravity dual of a density matrix