Effect of practical losses on optimal design of batch RO systems