Text this: Power generation allocation of cyber–physical power systems from a defense–attack–defense perspective