Phase diagrams and ionic defects in the 2212 and 2201 phases of the bismuth system