Study: Nursing homes unprepared for pandemics