Single-phase rectifier and its control