A global approach to the phasing problem: tools in the programs EXPO2007 and IL MILIONE.