A direct electrochemical route from ilmenite to hydrogen-storage ferrotitanium alloys.