Dangerous staffing levels in Borders hospitals, says union