The convicted person may not be placed in detention or under house arrest with electronic monitoring pursuant to article 142-5 only if the remaining sentence to be served is two years or more, except in one of the cases mentioned in l’article 723-16.