On the nuclear structure and stability of heavy and superheavy elements