How laser safety systems work