Ternium posts 36-cent Q2 loss as EPS misses $1.35 consensus