Quality of medical care and excess mortality in psychiatric patients—a nationwide register-based study in Sweden