In-situ and ex-situ resistance measurements of polypyrrole film using double-band electrode