Variability and reliability at the nanoscale of gate dielectrics of MOS devices and graphene based structures