Liouville quantum gravity as a mating of trees