Performance study for the photon measurements of the upgraded LHCf calorimeters with Gd2SiO5(GSO) scintillators