BMW plans to build a new engine plant in mainland China, as it vies to close the gap with Audi - which for decades has dominated the country's luxury car market.