Two commuter trains crashed head-on in southern Germany, killing at least eight people and injuring more than 100, in one of the country's deadliest rail accidents in years.