Coexistence of normal and inverse deuterium isotope effects in a phase-transition sequence of organic ferroelectrics