Identifying domains of applicability of machine learning models for materials science