Uniform metal-assisted chemical etching and the stability of catalysts