Optimal Population Coding for Dynamic Input by Nonequilibrium Networks