BlackBerry announces a $1 billion loss and a doomed plan to dig itself out