Synchonizing physical and digital twins