Understanding chemical reactions between carbons and NaOH and KOH