working principle of dc generator ppt