Snap plunges after huge revenue miss, writes down $40 million from unsold Spectacles.