What determines the type of volcano that is created?