The extended polar writhe: a tool for open curves mechanics