Boundary value problems for harmonic and minimal maps of surfaces into manifolds