Moved device models for diodes and bjts into net_lib.c