An integrated ANN controller for regulating multiple AC/DC variables of two-stage grid-tied inverters