Mechanisms of Heavy Metal Separation in Bioelectrochemical Systems and Relative Significance of Precipitation