Dynamic shape reconstruction of three-dimensional frame structures using the inverse finite element method