Conformational dependence of the first molecular hyperpolarizability in the computational design of nonlinear optical materials for optical switching