In-situ droplet inspection and closed-loop control system using machine learning for liquid metal jet printing