MOSim: bulk and single-cell multilayer regulatory network simulator