Quantifying the effects of cooling rates and alloying additions on the microporosity formation in Al alloys