Predicting building types and functions at transnational scale