Measuring the three-dimensional structure of galaxy clusters. II. Are clusters of galaxies oblate or prolate?