Energy levels of screened Coulomb and Hulthen potentials