Electronic structure studies of complex intermetallic arsenides and borides