Ultrafast x-ray-induced nuclear dynamics in diatomic molecules using femtosecond x-ray-pump–x-ray-probe spectroscopy