Automated system for extraction and instantaneous analysis of millimeter-sized samples