Correlated structural and optical investigation of terbium-doped zinc oxide nanocrystals