Ousted Egyptian president Morsi dies in court