A study on the local environment of lanthanide ion in nanocrystalline titania