Oil rises on signs of firmer demand, fall in US crude stocks