Energy states of the Hulthen plus Coulomb-like potential with position-dependent mass function in external magnetic fields