what are the difference between photodiode and phototransistor. also give me their respective practical application.