A general framework for neurobiological modeling: an application to the vestibular system