Theoretical Investigation of Relativistic Effects in Heavy Atoms and Polar Molecules