Orbital magnetoelectric effect in nanoribbons of transition metal dichalcogenides