Teen loses leg in train accident