Principles of water resources