Do the determinants of health differ between people living in the community and in institutions?