Internode patterns, adaptation and the origins of sweetcorn