A novel sense amplifier to mitigate the impact of NBTI and PVT variations for STT-MRAM