acid rain leaches such inorganic components as potassium , calcium and magnesium from the soil and can decompose rock , alter soil components , accelerate the leaching of potassium and magnesium and promote wind erosion of the soil ; it can depress the vital activity of microorganisms , slow the degradation of organic matter , and cause a decline in soil fertility , which also decreases crop yields .