Thermal vs quantum decoherence in double well trapped Bose-Einstein condensates