A self-powered photodetector using a pulsed triboelectric nanogenerator for actual working environments with random mechanical stimuli