Recovering differential operators with nonlocal boundary conditions