Advanced laser-driven ion sources and their applications in materials and nuclear science