Text this: Development of a single phase offline ups controller based on voltage failure detection method