OfficeMax swings to loss in Q2, more closures planned