Equilibrium phase diagrams for the elongation of epitaxial quantum dots into hut-shaped clusters and quantum wires