Effect of photonic band gap on entanglement dynamics of qubits