Supply and demand, politics, supply chain, geography and other factors set gasoline prices at the pump. Here's how it works.