In a hydroponic vertical farming facility, a crop of butterhead lettuce develops pale yellow leaves (chlorosis) and exhibits severely stunted growth. Chemical analysis of the nutrient solution reveals a deficiency in magnesium ions.
Explain how a deficiency of magnesium ions leads to the yellowing of leaves and the subsequent reduction in crop growth.