Study links painkillers to irregular heartbeat