Mechanisms of inkjet printing in a liquid environment