A comparative study on direct and indirect electrochemical oxidation of polyaromatic compounds