The notion of coherence in optics and its application to acoustics