Assessing water security and adaptation measures in a changing environment