Coherent time evolution and boundary conditions of two-photon quantum walks in waveguide arrays