Electrical devices with electrodes on softening polymers and methods of manufacturing thereof