What are the similarities and differences between photosynthesis and chemosynthesis