Light yield non-proportionality of inorganic crystals and its effect on cosmic-ray measurements