Optimizing moderator dimensions for neutron scattering at the spallation neutron source.