chemistry is best defined as the study of what