Sensitive chemical compass assisted by quantum criticality