Bifurcation analysis of a circuit-related piecewise-affine map