ZTE swings to net loss on weak operator spending