Unified path integral treatment for generalized Hulthén and Woods–Saxon potentials