what determines the type of volcano that forms​