General dynamic wormholes and violation of the null energy condition