Density functional theory studies of Si36H36 and C36H36 nanocages