Embedded digital system design for neural network based vector control of a single-phase inverter