Putin: Russia would use nuclear arms if under attack