Balance of osmotic pressures determines the nuclear-to-cytoplasmic volume ratio of the cell