The association of demographic and health factors with working capability in elderly