Molecular Origin of Positive and Negative Electromechanical Response in Hydrogen-Bonded Systems