Development of an algorithm of bidirectional surface strain measurements from soft elastomeric capacitors