Tesla is laying off 10% of global workforce amid declining sales and production cuts