Plasmonics for On-Chip Photodetectors and Light Sources