Stable probability measures on groups and on vector spaces