Apple granted restraining order against stalker accused of harassing Tim Cook