Safety and Optimality Monitors for Learning-enabled Systems using Conformal Prediction