Tesla, the US electric carmaker, and BMW are discussing a possible battery and lightweight materials alliance, according to German media reports.