Morita theory for Hopf algebroids, principal bibundles, and weak equivalences