Control of voltage collapse in an electrical power system using center manifold theory