Investigation of electonic band structure of transition metal carbides and nitrides using density functional theory