Formation and evolution of low-mass Algols