A least-square method for non-asymptotic identification in linear switching control