Synthesis of 3-methyl-1,3,5-pentanetriol and its mono- and diesters