Phenomenological theory of reverse osmosis in macroscopically homogeneous membranes and its specification for the capillary space-charge model