Coarse-to-fine golden section autofocus for ptychography using gradient and frequency metrics | Synapse