A patient develops sneezing, itching, and nasal congestion within minutes of exposure to pollen. Laboratory analysis indicates that mast cells in the nasal mucosa have rapidly degranulated. Which substances released from mast cell granules are primarily responsible for the immediate vascular and smooth muscle effects in this reaction?