Chinese electric carmaker BYD posts record quarterly profit