Diaphragm discharge in liquids: Fundamentals and applications