Rapid identification of coherent pupil functions from multiple intensity measurements