Learning representations that are closed-form Monge mapping optimal with application to domain adaptation