The flat dimensions of injective modules