Efficient generation of distributed spherical Gaussian basis sets for molecules