Modification of the upconversion spontaneous emission in photonic crystals