What essential compound is produced in the pentose phosphate pathway that is needed for synthesis as well as for defence against oxidative damages?