Fabrication and optical properties of photonic crystals based on opal-GaP and opal-GaPN composites