Inverse analysis of excavations