Use ModuleDefinition.ReadModule instead of AssemblyDefinition.ReadAssembly when reading assembly resources