Extracting protein from seaweed and legume by-products