Use of X-ray diffraction in a study of ammonia leaching of multimetal sulfides