Computing extremal points of symplectic pseudospectra and solving symplectic matrix nearness problems.