Judge finds man accused of stabbing wife incompetent, discharges case against him