Focal plane wavefront sensing using machine learning: performance of convolutional neural networks compared to fundamental limits