The making of the 2016 Rio Olympic and Paralympic medals is a mix of art and science.