Strain relaxation and band-gap tunability in ternary InxGa1-xN nanowires