how pipe sizes are determined