Coarse-grained effective Hamiltonian via the Magnus Expansion for a three-level system