Modular convergence in generalized orlicz spaces for moment type operators