UNDERSTANDING FREQUENCY REGULATION IN ELECTRICAL GRIDS