Dielectric spectroscopy of liquid crystals in smectic, nematic, and isotropic phases confined in random porous media