Mortality among persons with a history as psychiatric inpatients with functional psychosis