Investigation of optical properties and energy transfer in Eu(III) and Tb(III) based composite compound dispersed in polar, non-polar solvents and polymer matrix