Ab-initio optical model theory of elastic electron-atom scattering