Investigation of hydrogen recycling in long-duration discharges and its modification with a hot wall in the spherical tokamak QUEST