Stability and electronic structures of group IV semiconductor alloy nanosheets: A first-principles study