SpatialBench: Benchmarking Multimodal Large Language Models for Spatial Cognition