Optimization of a bi-spectral boxed side-by-side moderator for the target-moderator-reflector system of the ESS