Beam test performance of the SKIROC2 ASIC