Discovery Potential of R-hadrons with the ATLAS Detector at the LHC