Preparation and electrochemical sensing application of porous conducting polymers