How Magnetic Generator Generate Electricity?