Theory and design of control valves and trims