SHANGHAI -- Batteries are by far the most expensive component of an electric vehicle, and swinging raw-material prices can make the task of lowering their cost more difficult. China’s Nio Inc. and Contemporary Amperex Technology Co. aim to lighten that burden by allowing customers to lease batteries separately from vehicles, reducing upfront purchase costs.