Algorithm for systematic peak extraction from atomic pair distribution functions.