On observer design for a class of continuous-time affine switched or switching systems