Applications of piezotronics and piezo-phototronics