Real-time determination of filtrate contamination during openhole wireline sampling by optical spectroscopy