An inverse solitary wave problem related to microstructured materials