A variant of the Johnson-Lindenstrauss lemma for circulant matrices