Modules over monads and operational semantics (expanded version) (Logical Methods in Computer Science, 2022)