Investigations of the structural dielectric and electronic states of substituted AgTaO3 and PbCaTiO3 ferroelectrics