Nanowire photodetectors based on wurtzite semiconductor heterostructures