Sixers snap 26-game skid with win over Pistons