Resilient design of discrete-time observers with general criteria using LMIs