Preparation of synthetic rutile and metal-doped LiFePO4 from ilmenite