The thermal neutron facility HOTNES: theoretical design