Frequency-dependent conductivity and dielectric function of superionic conductors