Entanglement measures and nonequilibrium dynamics of quantum many-body systems: A path integral approach