Numerical methods for stiff systems of differential equations related with transistors, tunnel diodes, etc