Mismatched Rate-Distortion Theory: Ensembles, Bounds, and General Alphabets