Macroscopic superposition states of ultracold bosons in a double-well potential