Lecture notes on inverse problems