Which sentence embeddings and which layers encode syntactic structure?