Microelectronics for artificial neural nets