Dirac equation from the extended uncertainty principle