Ten people were killed and scores injured after a freight train and a commuter train collided head-on outside Los Angeles.