Enhanced gain and detectivity of unipolar barrier solar blind avalanche photodetector via lattice and band engineering