Water interplay in trehalose polymorphism