Equilibria of elastic cable knots and links