Atomic critical potentials and structure of non-single-well potentials in glasses