Dark-soliton-like excitations in the Yang–Gaudin gas of attractively interacting fermions