Google lays off hundreds in hardware, voice assistant teams amid cost-cutting drive