(f) Any member who resigns for reasons other than health or election to the other house prior to the expiration of any year of the term for which [he] such member was elected, and who has received the total compensation and reimbursement for expenses provided under subsections (a) and (b) of this section for that year, shall reimburse the state in an amount equal to that portion of such total comp