Photonic band gap formation in certain self-organizing systems