Oil prices rise for the second straight day as US inventories decline