Structure and dynamics of dextran in binary mixtures of a good and a bad solvent