Feasibility and physics potential of detecting 8B solar neutrinos at JUNO