Electronic structure of the three phases in MEM(TCNQ)2