Probing Hawking and Unruh effects and quantum field theory in curved space by geometric invariants