Passivity-Based Control of Spatially-Discretized Port-Hamiltonian Systems