Estimate of mole sulfate ratios in magmatic rocks