definition of primary secondary and tertiary processing plants