API shows U.S. crude stocks rise, gasoline falls