Design of Luenberger-like observers for detectable switching systems