Isomer shift and quadrupolar splitting of the Mössbauer spectrum of ferroelectrics