BlackBerry maker RIM loses patent dispute with Nokia