Resolution criteria in scanning microscopes