Power systems line and machine protection system study and hardware implementation