Small-Signal and Large-Signal Modelling of Active Devices using CAD-Optimised Neural Networks