Oil gains after cyberattack forces shutdown of US fuel pipelines