Physiological and Metagenomic Analyses of Microbial Mats Involved in Self-Purification of Mine Waters Contaminated with Heavy Metals