Two anode materials for Li ion batteries with different reaction mechanisms : silicon nanowires and ruthenium nitride thin film