Effect of dielectric anisotropy on the resonant frequency of rectangular resonators with several dielectric layers