Polymer nanoencapsulated rare earth aerogels: chemically complex but stoichiometrically similar core–shell superstructures with skeletal properties of pure compounds