The science of AI and AI for science