Two-loop QCD corrections to semileptonic b decays at an intermediate recoil