Anharmonic lattice interactions in improper ferroelectrics for multiferroic design