A study of the electron structure of endohedrally confined atoms using a model potential