FlexHH: A flexible hardware library for Hodgkin-Huxley-based neural simulations