what two phases can photosynthesis be broken down into?