Quantum discord dynamics of two qubits in single-mode cavities