A wavelet transform algorithm for peak detection and application to powder x-ray diffraction data | Synapse