Media General reports income increase, net loss in second quarter 2012