Big improvement in gain estimation program

* measure-noise.py:
  * Refactor into function so we can investigate statistics of
    different pairs of images
  * Apply to p83, p84, two exposures of 244-440 with identical PA