AMC swings to profit in Q2 as box office attendance surges 13.5%