Microscopic global optical potential for nucleon-nucleus systems in the energy range 50–400 MeV