Liontown books loss on convertible note deal despite lithium revenue and production surge in first half