Synthesis of 4-oxododecanoic and 4-oxododecanedioic acids