Thermodynamic and electronic properties of tunable II–VI and IV–VI semiconductor based metal–organic frameworks from computational chemistry