Quantum information approach to a Bose–Einstein condensate in a tilted double-well system