Criteria for jet cavitation and cavitation jet drilling