Cross-validation of matching correlation analysis by resampling matching weights