A Versatile Route to Assemble Semiconductor Nanoparticles into Functional Aerogels by Means of Trivalent Cations.