Discrete optics in femtosecond-laser-written photonic structures