The volumes of two cylinders are as a : b, and their heights are as c : d. Find the ratio of their diameters.