Detecting neutral atoms on an atom chip