Predicting refractive index of inorganic compounds using machine learning