Giant magneto-elastic coupling in multiferroic hexagonal manganites