Tunable photoluminescence from layered rare-earth hydroxide/polymer nanocomposite hydrogels by a cascaded energy transfer effect