Towards Guaranteed Safe AI: A Framework to Ensure Robust and Reliable AI Systems