Rectifiers are used to convert