Quantized Hall effect and quantum phase transitions in coupled two-layer electron systems