Economic observations concerning optimal prevention and compensation of damage caused by medical malpractice