Kennebunk doctor had history of writing life-threatening opioid prescriptions, new documents say