Comparison between the transverse responses of the reactions 12C(e,e'p) 11Band 12C(gamma,p)11B