Theory of spontaneous polarization and birefringence in the tetragonal phase of KNbO3