Rare-earth-doped films prepared by plasma-enhanced chemical vapour deposition