Scientific Machine Learning of 2D Perovskite Nanosheet Formation