Arrangements for handling radiation or particles using diffractive, refractive or reflecting elements provided with cooling means