Size and shape effects on the band gap of semiconductor compound nanomaterials