New method developed for analyzing photonic crystal structure