Nucleosynthesis in Accretion and Outflow Regions around Black Holes