Metal–organic frameworks as semiconductors