Physics-informed neural network for seismic wave inversion in layered semi-infinite domain