A measurement of the material in the ATLAS inner detector using secondary hadronic interactions