Study on Prins reaction: Synthesis of 1,3-dioxane carboxylic acids and anisolic resins-Spectral and thermal degradation behaviour