The solution of the hypernetted‐chain approximation for fluids of nonspherical particles. A general method with application to dipolar hard spheres