Mechanism of the Ferroelectric Phase Transition in K4[Fe(CN)6]·3H2O and K4[Fe(CN)6]·3D2O