Adaptation of cotton production to climate change by sowing date optimization and precision resource management