Method for Analytically Finding the Nullspace of Stiffness Matrix for Both Zeroth-Order and Higher Order Curl-Conforming Vector Bases in Unstructured Meshes