Text this: Formation invasion - with applications to measurement-while-drilling, time lapse analysis, and formation damage