Ferroelectric-Ferroelastic Phase Transition in a Nematic Liquid Crystal.