Heavy ion physics at the LHC with the ATLAS detector