High-power attosecond X-ray free-electron laser with self chirping