China's BYD takes aim at Tesla in battery factory race