The Hindmarsh-Rose neuron model: bifurcation analysis and piecewise-linear approximations