Multifractal features of the microstructure in hard and soft ferroelectric ceramic materials