Interferometric spatial mode analysis in optics