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