Design of an observer for detectable systems with time-delay and unknown inputs