Decomposing Spatial Mode Superpositions with a Triangular Optical Cavity