Evolutionary origin and functional diversification of aminotransferases