Extensions of Matroids over Tracts and Doubly Distributive Partial Hyperfields