Diagnosing magnesium deficiency in barley