Microbial diversity and metabolic potential in caves