Design of a high bitrate optical decoder based on photonic crystals