Kinetic energy of vortex knots and unknots