Hot Carrier Generation in Nanostructures for Efficient Photocatalysis and Photodetection