Flexible automation accelerates materials discovery