Application of X-ray diffraction for studies on microbially induced metal corrosion