Precise measurements of the K-s -> gamma gamma and K-L -> gamma gamma decay rates