A p-n junction diode cannot be used for increasing the amplitude of an AC signal. A p-n junction can be used as a rectifier because of its asymmetric current/voltage oroperties that enable current to flow in only one way and it converts light energy to electric energy as well as getting light radiation.