Photon-in/photon-out endstation for studies of energy materials at beamline 02B02 of Shanghai Synchrotron Radiation Facility