Tunable isolated attosecond X-ray pulses with gigawatt peak power from a free-electron laser