Non-Markovian dynamics in atom-laser outcoupling from a double-well Bose–Einstein condensate