Two-loop computation of the Schrödinger functional in lattice QCD