Hydraulic-Based Testing and Material Modelling to Investigate the Uniaxial Compression of Thermoset and Thermoplastic Polymers in the Quasistatic-to-Dynamic Regime