Relativistic and many-body effects in K, L, and M shell ionization energy for elements with and the determination of the 1s Lamb shift for heavy elements