Phase Transition of the Potassium Nitrate Ferroelectric in a Nanoporous Matrix