Electromechanical properties of polyanilines prepared by two different approaches and their applicability in force measurements