Oil up as dollar weakens after US bank failures