Piezo-phototronic devices based on two-dimensional materials