Electrochemical formation and properties of thin polyaniline films on Au(111) and p-Si(111)