The trojan-horse method applied to the astrophysically relevant proton capture reactions on Li isotopes