Analyses of internal structures and defects in materials using physics-informed neural networks