Complex patients who need long-term care are struggling to find care in skilled nursing facilities. Researchers say staffing shortages play a huge role.