Refinery leftovers. Battery chemicals. Jet-engine coatings. AMG Critical Materials makes a business of the awkward steps between raw material and something the world can use.