Solution of the crystallographic phase problem by iterated projections