Entanglement and purity of two-mode Gaussian states in noisy channels