X-ray irradiation in XTE J1817−330 and the inner radius of the truncated disc in the hard state