Production of active pharmaceutical ingredients (APIs) from lignin-derived phenol and catechol