No detection of large-scale magnetic fields at the surfaces of Am and HgMn stars