Quantifying decoherence of continuous variable systems