Gas prices rise as refineries brace for Sandy