Conversion of ac power input into dc power output; Conversion of dc power input into ac power output with possibility of reversal