A study of rare-earth doped silicon based films as a luminescent downshifting layer for cadmium telluride photovoltaics