Engineering a self-aligned metal-oxide-semiconductor gate stack for nano-modular device fabrication