Uranium triatomic compounds XUY (X,Y=C,N,O): a combined multiconfigurational second-order perturbation and density functional study