Solving crystal structures using reciprocal-space methods