Bottom-up synthesis of oxygen-containing carbon materials using a Lewis acid catalyst