Vector potential–vorticity relationship for the Stokes flows: application to the Stokes eigenmodes in 2D/3D closed domain