Effect of stress fields on magma chamber stability and the formation of collapse calderas