On the formation of calderas during ignimbrite eruptions