Shape And Stability Of Epitaxial Nanostructures Evolving Under Growth Or Annealing