BlackBerry shares soar as software sales hit record