Form factors for B → πlνland B → K∗γ decays on the lattice