Four equal electric charges are arranged at the four corners of a square of side a. Out of these four charges, two charges are positive and placed at the ends of one diagonal. The other two charges are positive and placed at the ends of the other diagonal. The energy of the system is: