GM finishes buying self-driving car tech firm