Real-time experiment-theory closed-loop interaction for autonomous materials science