Possible scenarios for the formation of Ap/Bp stars