Experiment and first principles investigation on the hydrogen-hindered phase transition of ferroelectric ceramics