SEAM: Semantically Equivalent Across Modalities Benchmark for Vision-Language Models