Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey