Interpretation of the optical activity of TeO2 and LiIO3