In situ scanning probe microscopy investigations of electroactive films