Mott's formula for the thermopower and the Wiedemann-Franz law