Categories of proofs for modal logics