BlackBerry beats Q2 targets, cites growth in automotive vertical