Detecting Atoms with Integrated Optics and Frequency-Synthesised Light