Smartphone Makers Gave India Spy Tools, 'Leaked' Memos Say