Effective Dimensions of Hierarchical Latent Class Models