On-demand multimode optical storage in a laser-written on-chip waveguide