Teen killed in rail accident has ties to Union Pacific