Effect of the nanowire diameter on the linearity of the response of GaN-based heterostructured nanowire photodetectors