Engineering decoherence for two-qubit systems interacting with a classical environment