Stellar evolution and nucleosynthesis