Precise measurements of the K_S --> gamma gamma and K_L --> gamma gamma decay rates