BND helped NSA monitor billions of phone and internet data