Bright and dark periods in the entanglement dynamics of interacting qubits in contact with the environment