The velocity of jet of water travelling out of opening in a tank filled with water is proportional to