TOKYO (Reuters) – Japanese electronic parts maker TDK Corp said it had agreed to buy InvenSense Inc , a U.S. chip maker that produces motion sensors for Apple Inc and Samsung Electronics Co , for $1.33 billion.