Sex-related differences in the length of disability prior to death in older persons