Marathon Petroleum Corp posted a better-than-expected quarterly profit, helped by lower operating costs and robust demand for gasoline…