Design of DC Machines