Clustering and formation of nano-precipitates in dilute aluminium and magnesium alloys