Spectral and modal analysis of a cavitating flow through an orifice