The spontaneous birefringence and pyroelectric effect in KTiOPO4 crystals