Identifying a First-Order Phase Transition in Neutron-Star Mergers through Gravitational Waves.