Tesla is laying off more than 10% of staff globally as sales fall