Drop detachment mechanisms of single droplets from nozzles or pins