How are electrons produced in photosystem II and how do they flow to photosystem I?

How are electrons produced in photosystem II and how do they flow to photosystem I?