using conversion of ac into dc