Atom interferometry with trapped Bose–Einstein condensates: impact of atom–atom interactions