Structural and nonlinear dielectric properties in fluoride containing SrTiO3 or BaTiO3 ceramics