A System Dynamics Approach to Integrated Water and Energy Resources Management