introduction to photodetectors and applications