Generation of quantum correlations for two qubits through a common reservoir