A Monte Carlo approach to crystal structure determination from powder diffraction data