Gryffin: An algorithm for Bayesian optimization for categorical variables informed by physical intuition with applications to chemistry