Photon splitting in soft gamma repeaters