Mains Fail Detection with UPS Analogy using 8051 Microcontroller