Computation of shift in oscillation frequency in the cavity resonator caused by anisotropicity and inhomogeneity of the permittivity