Electric-field control of spin transitions in molecular compounds