Thermodynamics of quantum lattice system with local multi-well potentials: dipole ordering and strain effects in modified Blume–Emery–Griffiths model