Method for sensitivity analysis of photonic crystal devices | Synapse