Working by transmitting the laser beam through or within the workpiece