Safe Learning and Verification of Neural Network Controllers for Autonomous Systems