Oil prices near $50 a barrel after US inventory data