Breivik studied al-Qaida attacks before rampage