Gravitational waves illuminate the interior of neutron stars