Improved quantum error correction using soft information