Energy transfer between rare earths in layered rare-earth hydroxides