Spontaneous CP violation and baryogenesis in the minimal supersymmetric standard model