Interaction of Safety and Security in Mode Selection with RFID Systems