BYD has reported a sharp rise to profit as sales of its eco-friendly cars have surged in China.