Text this: A Novel Proposal for All Optical Analog-to-Digital Converter Based on Photonic Crystal Structures