Harmonic analysis of Rajchman algebras