Comonadic Semantics for Guarded Fragments