Applications of microlocal analysis in general relativity and inverse problems