BYD has been given approval to sell its cars in the cities of Beijing and Shanghai's programmes designed to encourage take-up of green cars.