Dark and bright solitons in a Bose–Einstein condensate with a Feshbach resonance