Hadronic light-by-light scattering contribution to the muon g-2 from lattice QCD : semi-analytical calculation of the QED kernel