Geometric construction of semicanonical bases and crystals of (affine) Lie algebras via quivers and Higgs bundles