Magma chambers: Formation, local stresses, excess pressures, and compartments