A survey on domain adaptation theory