Mechanism of filament formation in UPA-promoted CARD8 and NLRP1 inflammasomes