Iterative projection algorithms and applications in x-ray crystallography