Generating sets of elements in compact groups