A weighting method for simultaneous adjustment for confounding and joint exposure-outcome misclassifications