Entangling atoms for quantum metrology