Phase transitions of ascorbic acid and sodium ascorbate in a polymer matrix and effects on vitamin degradation