Quality of care and outcomes of chronic mentally ill patients in hospitals and nursing homes.