On semidefinite programming characterizations of the numerical radius and its dual norm