Mg alloyed InP and InN as candidate materials for UV photodetectors with possible solar cell and photocatalysis applications. | Synapse