Two-dimensional material based layer transfer of thin film devices