Optical model of the interaction between intermediate energy neutrons and nuclei