Measuring Speed of Gravitational Waves by Observations of Photons and Neutrinos from Compact Binary Mergers and Supernovae