Ultralow-dimensionality reduction for identifying critical transitions by spatial-temporal PCA