RIM loses patent dispute against Nokia