Tesla faces lawsuit over software that cut range from some cars