Dynamics of quantum correlations in two-qubit systems within non-Markovian environments