Design and validation of magnetic particle spectrometer for characterization of magnetic nanoparticle relaxation dynamics