Three-dimensional quantum geometry and black holes