Using canonical correlations in testing for common nonlinear components