On the opportunities and risks of foundation models