Heat generation with and without laser operation (at 1064 and 1340 nm) in Nd:YAG