Heterodyne Near Field Speckles: from laser light to X-rays