Optimization of the design of OMNIS, the observatory of multiflavor neutrinos from supernovae