Common painkillers linked to increased risk of heart attack, study says